package com.guang.demo2;

import com.guang.demo2.config.Demo2Config;
import com.guang.demo2.service.AccountService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Description
 * @Author liguang
 * @Date 2023/08/01/22:42
 */
public class Demo2Test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext();
        applicationContext.register(Demo2Config.class);
        applicationContext.refresh();
        AccountService accountServiceProxy = (AccountService) applicationContext.getBean("accountServiceProxy");
        accountServiceProxy.transfer("tom","jerry",200D);
    }
}
